'use strict';

Object.defineProperty(exports, '__esModule', {
  value: true,
});
exports.unregisterField =
  exports.registerField =
  exports.getFields =
  exports.getField =
  exports.Fields =
    void 0;
var _fields = require('../../fields');
var _fields2 = require('../fields');
var Fields = {
  input: _fields.Input,
  textarea: _fields.Input.Textarea,
  'input-number': _fields.InputNumber,
  radio: _fields.Radio,
  checkbox: _fields.Checkbox,
  select: _fields.Select,
  cascader: _fields.Cascader,
  'date-picker': _fields.DatePicker,
  'range-picker': _fields.DatePicker.RangePicker,
  switch: _fields.Switch,
  upload: _fields.Upload,
  list: _fields2.List,
};
/**
 * 获取全量的表单控件
 */
exports.Fields = Fields;
var getFields = function getFields() {
  return Fields;
};
/**
 * 获取表单控件
 * @param type
 */
exports.getFields = getFields;
var getField = function getField(type) {
  return Fields[type];
};
/**
 * 注册表单控件
 * @param type
 * @param Field
 */
exports.getField = getField;
var registerField = function registerField(type, Field) {
  Fields[type] = Field;
};
/**
 * 撤销表单控件
 * @param type
 * @param Field
 */
exports.registerField = registerField;
var unregisterField = function unregisterField(type, Field) {
  delete Fields[type];
};
exports.unregisterField = unregisterField;
